package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.entity.StudyProgress;
import com.scuec.groupfive.mapper.StudyProgressMapper;
import com.scuec.groupfive.service.StudyProgressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudyProgressServiceImpl implements StudyProgressService {

    @Autowired
    private StudyProgressMapper studyProgressMapper;

    @Override
    public List<StudyProgress> getStudyProgress(Long userId) {
        return studyProgressMapper.selectStudyProgressByUserId(userId);
    }
}